package com.example.library_base.base

import dagger.hilt.android.scopes.ActivityRetainedScoped
import retrofit2.Retrofit
import javax.inject.Inject

@ActivityRetainedScoped
open class BaseRepository<T> @Inject constructor(clazz: Class<T>){

    @Inject
    lateinit var retrofit: Retrofit

    val service: T by lazy { retrofit.create(clazz) }
}